package com.youju.parking.fegin;

import com.jiazhong.youju.commons.utils.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "youju-community",path = "/community")
public interface CommunityFegin {

    @GetMapping("/{id}")
    JSONResult findNameById(@PathVariable(value = "id") int id);
}
